/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.groupbuy.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author LGH
 * @date 2019-08-27 17:55:57
 */
@Data
@TableName("tz_group_sku")
@ApiModel("拼团活动商品规格")
public class GroupSku implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("拼团活动商品规格id")
    @TableId
    private Long groupSkuId;

    @ApiModelProperty("拼团活动id")
    private Long groupActivityId;

    @ApiModelProperty("商品规格id")
    private Long skuId;

    @ApiModelProperty("活动价格")
    private Double actPrice;

    @ApiModelProperty("已售数量")
    private Long sellNum;

    @ApiModelProperty("规格名称")
    @TableField(exist = false)
    private String skuName;

    @ApiModelProperty("规格单价")
    @TableField(exist = false)
    private Double price;

    @ApiModelProperty("sku库存")
    @TableField(exist = false)
    private Long stocks;

    @ApiModelProperty("商品id")
    @TableField(exist = false)
    private Long prodId;
}
